﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace craigsPack
{
    public class CityIdCollection : CollectionBase
    {
        public void Add(CityArea area)
        {
            InnerList.Add((CityArea)area);
        }
        protected override void OnInsert(int index, object value)
        {
            if(!InnerList.Contains((CityArea)value))
               base.OnInsert(index, value);
        }
    }
}
